<!DOCTYPE HTML>
<html>
<head>
  <title>分店信息</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link href="css/style.css" rel="stylesheet" type="text/css"  media="all" />
  <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
  <link href="css/slider.css" rel="stylesheet" type="text/css"  media="all" />
  <script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
  <script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
  <script type="text/javascript">
    $(window).load(function() {
        /*解析网页中传递过来的id*/
        var thisURL=document.URL;
        thisURL=thisURL.split('?')[1];
        var clubid=thisURL.split("=")[1];
        var path = "/" + location.pathname.split("/")[1];
        /*根据总店id查询对应分店的详细信息*/
        var path = "/" + location.pathname.split("/")[1];
        $.post(path+"/S_getImage",function (data) {
            console.log(data);
            $.each(data,function (i,li) {
                console.log(li.imagePath);
                $("#slider").append(
                    '<img src="'+path+"/"+li.imagePath+'" data-thumb="'+path+"/"+li.imagePath+'"  alt="" />'
                );
            });
            $('#slider').nivoSlider();
        },'json');
        $.get(path+"/"+"S_getClubByClubid?clubId="+clubid,function (date) {
            console.log(date);
            $.each(date.shopSet,function (i,obj) {
                $("#club").append(
                    '<div class="grid_1_of_3 images_1_of_3 top_grid" style="margin-top: 0px;margin-left: 0px;margin-right: 10px">'+
					'<h3>'+obj.shopname+'</h3>'+
                    '<img src="/SWT/'+obj.shopimg+'" alt=""style="width: 400px;height: 230px"/>'+
                    '<span>联系人</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>'+obj.shopcontacts+'</span><br>'+
                	'<span>类型</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>'+obj.shoptype +'</span><br>'+
                	'<span>联系手机</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>'+obj.shopphone +'</span><br>'+
					'<span>详细地址</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>'+obj.shoppro+obj.shopcity+obj.shoparea+'</span>'+
                    '<div class="button"><span><a href="clubVipCard.html?clubId='+obj.shopid +'">申请会员卡</a></span></div>'+
                	'</div>');
            });
    	},"json");
    });
    </script>
 </head>
<body>
	<!----start-header----->
	<!---start-top-nav---->
	 <div class="header">
	     <div class="wrap">
	     <!---start-top-nav---->
			<div class="top-header">
				<div class="clear"> </div>
			</div>
			<!---start-top-nav---->
			<div class="top-nav">
				<div class="top-nav-left">
					<ul>
						<li><a href="person.html">个人信息</a></li>
						<li><a href="index.html">约个课</a></li>
						<li ><a href="personal.html">约私教</a></li>
						<li><a href="info.html">预约信息</a></li>
						<li class="active"><a href="club.html">店铺信息</a></li>
						<li><a href="vipcard.html">我的会员卡</a></li>
						<div class="clear"> </div>
					</ul>
				</div>
				<div class="top-nav-right">
					<div class="telephone">
						<span><i class="phone_img"><img src="images/phone.png" alt="" /></i> CALL</span><span class="number">(800) 234-5678</span>
					</div>
				</div>
				<div class="clear"> </div>
			</div>
			<!---End-top-nav---->
		</div>
	</div>
   <!----End-header----->
	       <!------ Slider ------------>
		     <div class="slider">
	      	  <div class="slider-wrapper theme-default">
	            <div id="slider" class="nivoSlider">
	            </div>
	        </div>
   	    </div>
		<!------End Slider ------------>
		 <!---start-content---->
		 <div class="wrap">
		   <div class="content">	 	 
		       <div class="top-grids">
			 		<div class="section group" id="club">
						<!--<div class="grid_1_of_3 images_1_of_3 top_grid" style="margin-top: 0px;margin-left: 0px;margin-right: 10px">			 <h3>场馆名</h3>
							  <img src="images/welcome_img2.jpg" alt="" />
						      <span>联系人</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>RNG</span><br>
						      <span>类型</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>总店</span><br>
						      <span>联系手机</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>8888888888</span><br>
						      <span>详细地址</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>河南青云</span>
						</div>-->

					</div>
		 		</div>
				  	   
			 	</div>		   			
		 <!---End-content---->
	</body>
</html>

